<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% 
String path = request.getScheme()+"://"+request.getServerName()
+":"+request.getServerPort()+request.getContextPath()+"/"; 
// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
pageContext.setAttribute("path",path); 
%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>收货地址列表</title>
</head>
<body>
	<!-- page-header -->
	<div class="page-header">
		<div class="page-comm">
			<div class="mt">
				<h3>收货地址</h3>
			</div>
			<div class="mc pull-right">
				<a href="${path}/manage/address/create?prevurl=manage/address"
					class="e-btn add-btn btn-5">新增收货地址</a>
			</div>
			<div class="mc">
				<p>设置好轻松购信息，就可以在商品页面直接下单 ，购物从此变得简单快乐。</p>
			</div>
		</div>
	</div>
	<!--/.page-header -->

	



			<table class="table data-table">
				<tr>
					<th>收货人</th>
					<th>详细地址</th>
					<th>电话/手机</th>
					<th>操作</th>
					<th></th>
				</tr>
				<c:forEach items="${page.content}" var="adr">
					<tr>
					<th>${adr.name}</th>
					<th>${adr.address}</th>
					<th>${adr.telephone}</th>
					<th></th>
					<th></th>
				</tr>
				</c:forEach>
			</table>
</body>
</html>